package com.student.servlet;

import java.io.IOException;
import java.util.LinkedList;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.student.service.studentService;

public class roundStuServlet extends HttpServlet{
	
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		studentService service = new studentService();
		LinkedList<String> stuList = service.getStuList();
//		request.setCharacterEncoding("utf-8");
		request.setAttribute("stuList", stuList);
		request.getRequestDispatcher("page/roundStu.jsp").forward(request, response);
	}
	
	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}
}
